import React from "react";
import lazyLoad from "@/routers/utils/lazyLoad";
import {LayoutIndex} from "@/routers/constant";
import {RouteObject} from "@/routers/interface";

// cssModel模块
const cssModelRouter: Array<RouteObject> = [
    {
        element: <LayoutIndex/>,
        children: [
            {
                path: "/cssModel/cssName",
                element: lazyLoad(React.lazy(() => import("@/views/cssModel/cssName/index"))),
                meta: {
                    requiresAuth: true,
                    title: "前端命名规范",
                    key: "前端命名规范"
                }
            }, {
                path: "/cssModel/publicMethod",
                element: lazyLoad(React.lazy(() => import("@/views/cssModel/publicMethod/index"))),
                meta: {
                    requiresAuth: true,
                    title: "css笔记总结",
                    key: "dataScreen"
                }
            }
        ]
    }
];

export default cssModelRouter;
